average weighted cost